﻿using MySuperSocketServer.AppSession;
using MySuperSocketServer.Filter.CommandFilter;
using SuperSocket.SocketBase.Command;
using SuperSocket.SocketBase.Protocol;

namespace MySuperSocketServer.Command
{
    [RecordExecutionTimeCommandFilter]
    public class NoKeyOneParameter : CommandBase<TelnetSession, StringRequestInfo>
    {
        public override void ExecuteCommand(TelnetSession session, StringRequestInfo requestInfo)
        {
            session.Logger.Debug($"请求入参：{requestInfo.Body}");
            session.Send($"命令行协议：{requestInfo.Key }\r\n请求体：{requestInfo.Body}");
        }
    }
}
